package com.dream.service.user.entry;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by zhiji on 2016/3/21.
 */

public class ServerRunner {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext("classpath:spring.xml");
        System.out.println("服务端启动完成");

        // 启动本地服务，然后hold住本地服务
        synchronized (ServerRunner.class) {
            while (true) {
                try {
                    ServerRunner.class.wait();
                } catch (InterruptedException e) {
                }
            }
        }
    }
}
